package com.meihua.mes2ehr.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName mes_point_mapping
 */
@TableName(value ="mes_point_mapping")
@Data
public class MesPointMapping implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    private String piPointNo;

    /**
     * 
     */
    private String piPointName;

    /**
     * 
     */
    private String hlsPointNo;

    /**
     * 
     */
    private String hlsPointName;

    /**
     * 
     */
    private String impHlsPointNo;

    /**
     * 
     */
    private String remark;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MesPointMapping other = (MesPointMapping) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPiPointNo() == null ? other.getPiPointNo() == null : this.getPiPointNo().equals(other.getPiPointNo()))
            && (this.getPiPointName() == null ? other.getPiPointName() == null : this.getPiPointName().equals(other.getPiPointName()))
            && (this.getHlsPointNo() == null ? other.getHlsPointNo() == null : this.getHlsPointNo().equals(other.getHlsPointNo()))
            && (this.getHlsPointName() == null ? other.getHlsPointName() == null : this.getHlsPointName().equals(other.getHlsPointName()))
            && (this.getImpHlsPointNo() == null ? other.getImpHlsPointNo() == null : this.getImpHlsPointNo().equals(other.getImpHlsPointNo()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPiPointNo() == null) ? 0 : getPiPointNo().hashCode());
        result = prime * result + ((getPiPointName() == null) ? 0 : getPiPointName().hashCode());
        result = prime * result + ((getHlsPointNo() == null) ? 0 : getHlsPointNo().hashCode());
        result = prime * result + ((getHlsPointName() == null) ? 0 : getHlsPointName().hashCode());
        result = prime * result + ((getImpHlsPointNo() == null) ? 0 : getImpHlsPointNo().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", piPointNo=").append(piPointNo);
        sb.append(", piPointName=").append(piPointName);
        sb.append(", hlsPointNo=").append(hlsPointNo);
        sb.append(", hlsPointName=").append(hlsPointName);
        sb.append(", impHlsPointNo=").append(impHlsPointNo);
        sb.append(", remark=").append(remark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}